Optimal. Leaf size=94 \[ \frac {2}{3} \sqrt {x+1} \sqrt {x^2-x+1}+\frac {2}{9} \sqrt {x+1} \sqrt {x^2-x+1} \left (x^3+1\right )-\frac {2 \sqrt {x+1} \sqrt {x^2-x+1} \tanh ^{-1}\left (\sqrt {x^3+1}\right )}{3 \sqrt {x^3+1}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.04, antiderivative size = 94, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 5, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.217, Rules used = {915, 266, 50, 63, 207} \[ \frac {2}{9} \sqrt {x+1} \sqrt {x^2-x+1} \left (x^3+1\right )+\frac {2}{3} \sqrt {x+1} \sqrt {x^2-x+1}-\frac {2 \sqrt {x+1} \sqrt {x^2-x+1} \tanh ^{-1}\left (\sqrt {x^3+1}\right )}{3 \sqrt {x^3+1}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 50
Rule 63
Rule 207
Rule 266
Rule 915
Rubi steps
\begin {align*} \int \frac {(1+x)^{3/2} \left (1-x+x^2\right )^{3/2}}{x} \, dx &=\frac {\left (\sqrt {1+x} \sqrt {1-x+x^2}\right ) \int \frac {\left (1+x^3\right )^{3/2}}{x} \, dx}{\sqrt {1+x^3}}\\ &=\frac {\left (\sqrt {1+x} \sqrt {1-x+x^2}\right ) \operatorname {Subst}\left (\int \frac {(1+x)^{3/2}}{x} \, dx,x,x^3\right )}{3 \sqrt {1+x^3}}\\ &=\frac {2}{9} \sqrt {1+x} \sqrt {1-x+x^2} \left (1+x^3\right )+\frac {\left (\sqrt {1+x} \sqrt {1-x+x^2}\right ) \operatorname {Subst}\left (\int \frac {\sqrt {1+x}}{x} \, dx,x,x^3\right )}{3 \sqrt {1+x^3}}\\ &=\frac {2}{3} \sqrt {1+x} \sqrt {1-x+x^2}+\frac {2}{9} \sqrt {1+x} \sqrt {1-x+x^2} \left (1+x^3\right )+\frac {\left (\sqrt {1+x} \sqrt {1-x+x^2}\right ) \operatorname {Subst}\left (\int \frac {1}{x \sqrt {1+x}} \, dx,x,x^3\right )}{3 \sqrt {1+x^3}}\\ &=\frac {2}{3} \sqrt {1+x} \sqrt {1-x+x^2}+\frac {2}{9} \sqrt {1+x} \sqrt {1-x+x^2} \left (1+x^3\right )+\frac {\left (2 \sqrt {1+x} \sqrt {1-x+x^2}\right ) \operatorname {Subst}\left (\int \frac {1}{-1+x^2} \, dx,x,\sqrt {1+x^3}\right )}{3 \sqrt {1+x^3}}\\ &=\frac {2}{3} \sqrt {1+x} \sqrt {1-x+x^2}+\frac {2}{9} \sqrt {1+x} \sqrt {1-x+x^2} \left (1+x^3\right )-\frac {2 \sqrt {1+x} \sqrt {1-x+x^2} \tanh ^{-1}\left (\sqrt {1+x^3}\right )}{3 \sqrt {1+x^3}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 0.30, size = 201, normalized size = 2.14 \[ \frac {\sqrt {x+1} \left (\frac {2}{9} \left (x^2-x+1\right ) \left (x^3+4\right )+\frac {i \sqrt {2} \sqrt {\frac {-2 i x+\sqrt {3}+i}{\sqrt {3}+3 i}} \sqrt {\frac {2 i x+\sqrt {3}-i}{\sqrt {3}-3 i}} \Pi \left (\frac {3}{2}-\frac {i \sqrt {3}}{2};i \sinh ^{-1}\left (\sqrt {2} \sqrt {-\frac {i (x+1)}{3 i+\sqrt {3}}}\right )|\frac {3 i+\sqrt {3}}{3 i-\sqrt {3}}\right )}{\sqrt {-\frac {i (x+1)}{\sqrt {3}+3 i}}}\right )}{\sqrt {x^2-x+1}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.69, size = 65, normalized size = 0.69 \[ \frac {2}{9} \, {\left (x^{3} + 4\right )} \sqrt {x^{2} - x + 1} \sqrt {x + 1} - \frac {1}{3} \, \log \left (\sqrt {x^{2} - x + 1} \sqrt {x + 1} + 1\right ) + \frac {1}{3} \, \log \left (\sqrt {x^{2} - x + 1} \sqrt {x + 1} - 1\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (x^{2} - x + 1\right )}^{\frac {3}{2}} {\left (x + 1\right )}^{\frac {3}{2}}}{x}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.01, size = 57, normalized size = 0.61 \[ -\frac {2 \sqrt {x +1}\, \sqrt {x^{2}-x +1}\, \left (-\sqrt {x^{3}+1}\, x^{3}+3 \arctanh \left (\sqrt {x^{3}+1}\right )-4 \sqrt {x^{3}+1}\right )}{9 \sqrt {x^{3}+1}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (x^{2} - x + 1\right )}^{\frac {3}{2}} {\left (x + 1\right )}^{\frac {3}{2}}}{x}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {{\left (x+1\right )}^{3/2}\,{\left (x^2-x+1\right )}^{3/2}}{x} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\left (x + 1\right )^{\frac {3}{2}} \left (x^{2} - x + 1\right )^{\frac {3}{2}}}{x}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________